﻿define([
    'Wjs/ui/widgets/fields/ToolField',
    'Wjs/ui/widgets/tools/DateTimeSelector'
],
function () {
    'use strict';

    return Wjs.defineOnce({

        type: 'DateTimeField',

        internal: {

            base: Wjs.getType('ToolField'),

            initialize: function () {

                this.addClass('wjs-date-time-field');

                this.setTool(

                    Wjs.new('DateTimeSelector')
                );
            }
        }

    });

});